import com.dinmax.flash.common.collection.*
import com.dinmax.dinmaxWeb.*

class BotonDinmax {
	private var parent:MovieClip;
	private var clip:MovieClip;
	private var name:String;
	private var label:String;
	private var link:String;
	private var subBotonera:Collection;
	
	function BotonDinmax(parent:MovieClip, name:String, label:String, link:String){
		subBotonera=new Collection();
		this.parent=parent;
		this.name=name;
		this.label=label;
		this.link=link;
	}

	
	public function getParent():MovieClip{
		return parent;
	}

	public function getName():String {
		return name;
	}
	public function setName(name:String):Void{
		this.name=name;
	}
	
	public function getLabel():String{
		return label;
	}
	public function setLabel(label:String):Void{
		this.label=label;
	}
	
	public function getLink():String{
		return link;
	}
	public function setLink(link:String):Void{
		this.link=link;
	}
	
	public function setClip(clip:MovieClip):Void{
		this.clip=clip;
	};
	public function getClip():MovieClip{
		return this.clip;
	};
	
	// SUB BOTONES
	public function addSubBoton(key:String, value:Object):Void {
		subBotonera.addItem(key, value);
	}
	
	public function removeSubBoton(key:String):Void{
		subBotonera.removeItem(key);
	}
	
	public function removeSubBotones():Void{
		subBotonera=new Collection();
	}
	
	public function getSubBoton(key:String):CollectionItem {
		return subBotonera.getItem(key);
	}
	public function getSubBotones():Collection{
		return subBotonera;
	}
	
		
} // fin de clase